package day4;

public class OblongDemo {
	public static void main(String[] args) {
		Oblong oblong1 = new Oblong();
		Oblong oblong2 = new Oblong(5);
		Oblong oblong3 = new Oblong(3,4);
		oblong1.setName("长方形1");
		oblong2.setName("长方形2");
		oblong3.setName("长方形3");
		oblong1.area();
		oblong1.girth();
		oblong2.area();
		oblong2.girth();
		oblong3.area();
		oblong3.girth();
	}
}
